package com.lb.uts.constants;

/**
 * 系统中的常量
 *
 * @Author liangb
 * @Date 2019/4/26 15:02
 */
public class UTSConstants {
    public static final String APP_CONTEXT = "APPLICATION_CONTEXT";

    public static final String SCHEDULE_JOB = "SCHEDULE_JOB";

    public static final String ZERO = "0";

    public static final String ONE = "1";

    public static final String TWO = "2";

    public static final String THREE = "3";

    public static final String FOUR = "4";

    /**
     * 远程执行结果，1：已调用，2：调用失败，3：执行失败，4：执行成功
     */
    public static final String REMOTECALL_STATUS_CALL_SUCCESS = ONE;
    public static final String REMOTECALL_STATUS_CALL_FAIL = TWO;
    public static final String REMOTECALL_STTAUS_EXECUTE_FAIL = THREE;
    public static final String REMOTECALL_STTAUS_EXECUTE_SUCCESS = FOUR;

    /*
    异步http,超时时间
     */
    public static final int TIME_OUT = 30 * 60 * 1000;

    /*
    等待队列定时刷新时间
     */
    public static final int WAIT_JOB_EXE_TIME = 60 * 1000;

    /**
     * 定时任务状态，0：正常，1：暂停，2：删除
     */
    public static final String JOB_STATUS_NORMAL = ZERO;
    public static final String JOB_STATUS_PAUSE = ONE;
    public static final String JOB_STATUS_DELETE = TWO;

    public static final String SUCCESS_CODE = "0000";
    public static final String FAIL_CODE = "0001";

    /*没有执行器*/
    public static final String NOT_EXIST_EXE_CLIENT = "1000";

    /**
     * 记录本地的ip:port
     */
    public static String LOCAL_IP_PORT = "";

    /**
     * 脚本的定时任务的特殊前缀-类
     */
    public static final String SCRIPT_SERVICE = "SS_";

    /**
     * 脚本的定时任务的特殊前缀-方法
     */
    public static final String SCRIPT_METHOD = "SM_";

    /**
     * 脚本类型
     */
    public static final String SCRIPT_TYPE="scriptType";

    /**
     * 脚本路径
     */
    public static final String SCRIPT_PATH="scriptPath";

}
